# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=straw-viewer
pkgver=0.1.3
pkgrel=2
pkgdesc="GTK+ interface to YouTube using the API of invidio.us"
url="https://github.com/trizen/straw-viewer"
arch="noarch"
license="Artistic-2.0 License"
depends="perl perl-gtk3 perl-file-sharedir perl-data-dump perl-json-xs
	perl-lwp-protocol-https perl-term-readline-gnu"
subpackages="$pkgname-doc"
makedepends="perl-dev perl-libwww perl-json
	perl-unicode-linebreak perl-module-build
	"
source="straw-viewer-$pkgver.tar.gz::https://github.com/trizen/straw-viewer/archive/$pkgver.tar.gz"
builddir="$srcdir"/straw-viewer-$pkgver
build() {
	perl Build.PL --destdir "$pkgdir" --installdirs vendor --gtk
}

check() {
	./Build test
}

package() {
	./Build install
	rm -rf $pkgdir/usr/lib
}

sha512sums="a26f2392f5281983294d250b7e82fed08f7b670f0d9da2872cd36e26b0bdb356c533a6731faa3b655753448b50efd56ee486c44b9cbcbf1592b16baa2371dfb4  straw-viewer-0.1.3.tar.gz"
